package com.topnav.mc.admin.entity;

import javax.validation.constraints.NotBlank;
import com.baomidou.mybatisplus.annotation.TableName;
import com.topnav.mc.entity.base.BaseEntity;
import com.topnav.mc.validator.group.IAdd;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 说明：
 * @类名: MediaServer
 * <p>
 *
 * </p>
 * @author   kenny
 * @Date	 2021年12月1日下午5:35:49
 */
@Data
@TableName("mc_gb_server")
public class GbServer extends BaseEntity{

	/** */
	private static final long serialVersionUID = -7784213204784063218L;

	@ApiModelProperty(value="编号")
	@NotBlank(message = "编号不允许为空",groups={IAdd.class})
	private String code;

	@ApiModelProperty(value="名称")
	@NotBlank(message = "名称不允许为空",groups={IAdd.class})
	private String name;

	@ApiModelProperty(value="行政区划代码")
	private String cityId;

	@ApiModelProperty(value="行业编号")
	private String businessId;

	@ApiModelProperty(value="网标识id")
	private String netIdentityId;

	@ApiModelProperty(value="服务器类型id")
	private String centerTypeId;

	@ApiModelProperty(value="设备类型id")
	private String deviceTypeId;


	@ApiModelProperty(value="ip")
	@NotBlank(message = "ip不允许为空",groups={IAdd.class})
	private String host;

	@ApiModelProperty(value="国标端口")
	@NotBlank(message = "国标端口不允许为空",groups={IAdd.class})
	private String port;

/*	@ApiModelProperty(value="行政区划代码(市级)")
	@NotBlank(message = "行政区划代码(市级)不允许为空",groups={IAdd.class})
	private String cityCode;

	@ApiModelProperty(value="行业编码")
	@NotBlank(message = "行业编码不允许为空",groups={IAdd.class})
	private String businessCode;

	@ApiModelProperty(value="设备类型编码")
	@NotBlank(message = "设备类型编码不允许为空",groups={IAdd.class})
	private String deviceType;

	@ApiModelProperty(value="网络编码")
	@NotBlank(message = "网络编码不允许为空",groups={IAdd.class})
	private String  netFlags;*/

	@ApiModelProperty(value="域id")
	@NotBlank(message = "域ID不允许为空",groups={IAdd.class})
	private String domain;

	@ApiModelProperty(value="用户")
	@NotBlank(message = "不允许为空",groups={IAdd.class})
	private String userName;

	@ApiModelProperty(value="密码")
	private String passwrd;

	@ApiModelProperty(value="RTSP端口")
	private String mediaPort;

	@ApiModelProperty(value="接口端口")
	@NotBlank(message = "接口端口不允许为空",groups={IAdd.class})
	private String apiPort;

	@ApiModelProperty(value="是否在线 1在线，0离线")
	private Integer online;

	private String localIpPort;

}
